<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="net.sureon.biz.*" %>
<%@ page import="net.sureon.common.SureonConstants"%>
<%
	CompanyConfigBO configBO = null;
	configBO = (CompanyConfigBO)request.getSession().getAttribute(SureonConstants.SESSION_ATTR_COMPAYCONFIG);
 %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>系统设置</title>
		<style type="text/css">
.style5 {
	width: 100%;
	font-size: small;
}
</style>

		<style type="text/css">
.style1 {
	width: 100%;
}

.style1 {
	width: 100%;
}

.style4 {
	font-size: small;
}

.style3 {
	font-size: xx-small;
	font-family: Arial;
}

.style2 {
	font-size: xx-small;
	font-family: Arial;
}
</style>
		<style type="text/css">
.ctl00_Navigation21_Menu1_0 {
	background-color: white;
	visibility: hidden;
	display: none;
	position: absolute;
	left: 0px;
	top: 0px;
}

.ctl00_Navigation21_Menu1_1 {
	color: #284E98;
	font-family: Verdana;
	font-size: Small;
	text-decoration: none;
}

.ctl00_Navigation21_Menu1_2 {
	color: #284E98;
	background-color: #B5C7DE;
	font-family: Verdana;
	font-size: Small;
}

.ctl00_Navigation21_Menu1_3 {
	
}

.ctl00_Navigation21_Menu1_4 {
	padding: 2px 5px 2px 5px;
}

.ctl00_Navigation21_Menu1_5 {
	
}

.ctl00_Navigation21_Menu1_6 {
	padding: 2px 5px 2px 5px;
}

.ctl00_Navigation21_Menu1_7 {
	background-color: #B5C7DE;
}

.ctl00_Navigation21_Menu1_8 {
	color: #FF9900;
}

.ctl00_Navigation21_Menu1_9 {
	background-color: #507CD1;
}

.ctl00_Navigation21_Menu1_10 {
	
}

.ctl00_Navigation21_Menu1_11 {
	background-color: #507CD1;
}

.ctl00_Navigation21_Menu1_12 {
	color: White;
}

.ctl00_Navigation21_Menu1_13 {
	color: White;
	background-color: #284E98;
}

.ctl00_Navigation21_Menu1_14 {
	color: White;
}

.ctl00_Navigation21_Menu1_15 {
	color: White;
	background-color: #284E98;
}
</style>

	</head>
	<body> 
			<jsp:include page="../header.jsp"></jsp:include>


			<table cellpadding="0" cellspacing="0" class="style1">
	
				<tr>
					<td colspan="2">

						<table cellpadding="0" cellspacing="1" class="style5">
	
							<tr>
								<td bgcolor="#FFFBD6" colspan="3">
									<span id="ctl00_ContentPlaceHolder1_Label4"
										style="color: #990000; background-color: #FFCC66; font-size: small">界面外观</span>
								</td>
							</tr>
				<form name="indexLogoForm" method="post" action="<%=request.getContextPath() %>/admin/upload.do" enctype="multipart/form-data">	
							<tr>
								<td>
									主页图标更改：
									<input type="file" name="indexLogo"
										id="ctl00_ContentPlaceHolder1_FileUpload1"
										style="height: 22px; font-size: small" />

								</td>
								<td>
									<input type="hidden" name="isFirstGo" value="false" />
									<input type="submit" name="ctl00$ContentPlaceHolder1$Button1"
										value="更 新" id="ctl00_ContentPlaceHolder1_Button1"
										style="height: 22px;" />
								</td>
								<td>
									提示：请准备好gif格式文件，建议图片大小不超过300*80px，上传更新即可。
								</td>
							</tr>
				</form>
				<form name="logoForLeftUpForm" method="post" action="<%=request.getContextPath() %>/admin/upload.do" enctype="multipart/form-data">	
							<tr>
								<td>
									网页左上角图标更改：
									<input type="file" name="logoForLeftUp"
										id="ctl00_ContentPlaceHolder1_FileUpload1"
										style="height: 22px; font-size: small" value="<%=configBO.getLogoForLeftUp() %>" />

								</td>
								<td>
									<input type="hidden" name="isFirstGo" value="false" />
									<input type="submit" name="ctl00$ContentPlaceHolder1$Button1"
										value="更 新" id="ctl00_ContentPlaceHolder1_Button1"
										style="height: 22px;" />
								</td>
								<td>
									提示：请准备好gif格式文件，建议图片大小不超过300*80px，上传更新即可。
								</td>
							</tr>
				</form>
				<form action="<%=request.getContextPath() %>/admin/systemSet.do" method="post">
							<tr>
								<td>
									网页左上角图标链接网址：
									<input name="linkForLeftUpLogo" type="text"
										id="ctl00_ContentPlaceHolder1_TextBox1"
										style="height: 16px; width: 187px; font-size: small" value="<%=configBO.getLinkForLeftUpLogo() %>" />
								</td>
								<td>
									<input type="hidden" name="isFirstGo" value="false" />
									<input type="submit" name="ctl00$ContentPlaceHolder1$Button2"
										value="更 新" id="ctl00_ContentPlaceHolder1_Button2"
										style="height: 22px;" />
								</td>
								<td>
									提示：用户在点击左上角图标时，网页将跳转到该网址。
								</td>
							</tr>
				</form>
					<form name="advertisingForRightUpForm" method="post" action="<%=request.getContextPath() %>/admin/upload.do" enctype="multipart/form-data">		
							<tr>
								<td>
									网页右上角广告横幅图：
									<input type="file" name="advertisingForRightUp"
										id="ctl00_ContentPlaceHolder1_FileUpload2"
										style="height: 22px; font-size: small" value="<%=configBO.getAdvertisingForRightUp() %>" />
								</td>
								<td>
									<input type="submit" name="ctl00$ContentPlaceHolder1$Button3"
										value="更 新" id="ctl00_ContentPlaceHolder1_Button3"
										style="height: 22px;" />
								</td>
								<td>
									提示：请准备好gif格式文件，建议图片大小不超过600*80px，上传更新即可。
								</td>
							</tr>
					</form>	
					<form action="<%=request.getContextPath() %>/admin/systemSet.do" method="post">
							<tr>
								<td>
									网页右上角广告横幅链接网址：
									<input name="linkForAdvertisingForRightUp" type="text"
										id="ctl00_ContentPlaceHolder1_TextBox2"
										style="height: 16px; width: 187px; font-size: small" value="<%=configBO.getLinkForAdvertisingForRightUp() %>" />
								</td>
								<td>
									<input type="hidden" name="isFirstGo" value="false" />
									<input type="submit" name="ctl00$ContentPlaceHolder1$Button4"
										value="更 新" id="ctl00_ContentPlaceHolder1_Button4"
										style="height: 22px;" />
								</td>
								<td>
									提示：用户在点击右上角广告横幅时，网页将跳转到该网址。
								</td>
							</tr>
					</form>	
					<form action="<%=request.getContextPath() %>/admin/systemSet.do" method="post">	
							<tr>
								<td>
									网页右下角管理员电子邮箱：
									<input name="adminEmail" type="text"
										id="ctl00_ContentPlaceHolder1_TextBox3"
										style="height: 16px; width: 187px; font-size: small" value="<%=configBO.getAdminEmail() %>" />

								</td>
								<td>
									<input type="hidden" name="isFirstGo" value="false" />
									<input type="submit" name="ctl00$ContentPlaceHolder1$Button5"
										value="更 新" id="ctl00_ContentPlaceHolder1_Button5"
										style="height: 22px;" />
								</td>
								<td>
									&nbsp;
								</td>
							</tr>
					</form>
					<form action="<%=request.getContextPath() %>/admin/systemSet.do" method="post">
							<tr>
								<td>

									网页右下角管理员电话号码：
									<input name="adminTel" type="text"
										id="ctl00_ContentPlaceHolder1_TextBox4"
										style="height: 16px; width: 187px; font-size: small" value="<%=configBO.getAdminTel() %>" />
								</td>
								<td>
									<input type="hidden" name="isFirstGo" value="false" />
									<input type="submit" name="ctl00$ContentPlaceHolder1$Button6"
										value="更 新" id="ctl00_ContentPlaceHolder1_Button6"
										style="height: 22px;" />
								</td>
								<td>
									&nbsp;
								</td>
							</tr>
					</form>

							<tr>
								<td>
									&nbsp;
								</td>
								<td>
									&nbsp;
								</td>
								<td>
									&nbsp;
								</td>
							</tr>
							<tr>

								<td bgcolor="#FFFBD6" colspan="3">
									<span id="ctl00_ContentPlaceHolder1_Label5"
										style="color: #990000; background-color: #FFCC66; font-size: small">运行规则</span>
								</td>
							</tr>
					<form action="<%=request.getContextPath() %>/admin/systemSet.do" method="post">		
							<tr>
								<td>
									运行用户可查看
									<input name="visibleDirectGroupLevel" type="text"
										value="<%=configBO.getVisibleDirectGroupLevel() %>" id="ctl00_ContentPlaceHolder1_TextBox5"
										style="height: 16px; width: 30px; font-size: small" />
									级下属的已审批考勤和申请记录。
								</td>

								<td>
									<input type="hidden" name="isFirstGo" value="false" />
									<input type="submit" name="ctl00$ContentPlaceHolder1$Button7"
										value="更 新" id="ctl00_ContentPlaceHolder1_Button7"
										style="height: 22px;" />
								</td>
								<td>
									提示：请输入1～5间的自然数。
								</td>
							</tr>
						</form>	
						<form action="<%=request.getContextPath() %>/admin/systemSet.do" method="post">
							<tr>
								<td>

									直接上司在
									<input name="dailyTimingReminderApproveInterval" type="text"
										value="<%=configBO.getDailyTimingReminderApproveInterval() %>" id="ctl00_ContentPlaceHolder1_TextBox6"
										style="height: 16px; width: 30px; font-size: small" />
									天后，若未对下属提交的考勤或申请记录进行审批，系统将发电子邮件提醒。
								</td>
								<td>
									<input type="hidden" name="isFirstGo" value="false" />
									<input type="submit" name="ctl00$ContentPlaceHolder1$Button8"
										value="更 新" id="ctl00_ContentPlaceHolder1_Button8"
										style="height: 22px;" />
								</td>
								<td>
									提示：请输入1～10间的自然数。
								</td>
							</tr>
						</form>	
						<form action="<%=request.getContextPath() %>/admin/systemSet.do" method="post">
							<tr>
								<td>
									直接上司在系统发电子邮件提醒
									<input name="autoApproveDays" type="text"
										value="<%=configBO.getAutoApproveDays()%>" id="ctl00_ContentPlaceHolder1_TextBox7"
										style="height: 16px; width: 30px; font-size: small" />
									天后，若仍未进行审批，系统将自动进行批准。
								</td>
								<td>
									<input type="hidden" name="isFirstGo" value="false" />
									<input type="submit" name="ctl00$ContentPlaceHolder1$Button9"
										value="更 新" id="ctl00_ContentPlaceHolder1_Button9"
										style="height: 22px;" />
								</td>

								<td>
									提示：请输入1～10间的自然数。
								</td>
							</tr>
						</form>
						<form action="<%=request.getContextPath() %>/admin/systemSet.do" method="post">
							<tr>
								<td>
									用户连续
									<input name="dailyTimingReminderInterval" type="text"
										value="<%=configBO.getDailyTimingReminderInterval() %>" id="ctl00_ContentPlaceHolder1_TextBox8"
										style="height: 16px; width: 30px; font-size: small" />
									天未提交考勤记录时，系统将自动发电子邮件提醒。
								</td>

								<td>
									<input type="hidden" name="isFirstGo" value="false" />
									<input type="submit" name="ctl00$ContentPlaceHolder1$Button10"
										value="更 新" id="ctl00_ContentPlaceHolder1_Button10"
										style="height: 22px;" />
								</td>
								<td>
									提示：请输入1～15间的自然数。
								</td>
							</tr>
						</form>	
							<tr>
								<td>

									&nbsp;
								</td>
								<td>
									&nbsp;
								</td>
								<td>
									&nbsp;
								</td>
							</tr>
							<tr>
								<td bgcolor="#FFFBD6" colspan="3">
									<span id="ctl00_ContentPlaceHolder1_Label6"
										style="color: #990000; background-color: #FFCC66; font-size: small">系统服务</span>

								</td>
							</tr>
							
						
						<form name="isNaturallyMonthForm" action="<%=request.getContextPath() %>/admin/systemSet.do" method="post">	
							<tr>
								<td>
									公司的考勤周期是自然月吗？
									<input type="radio" name="dailyTimingInNaturalMonth" value="true" <%=configBO.getDailyTimingInNaturalMonth() ? "checked" : ""%> />是
									<input type="radio" name="dailyTimingInNaturalMonth" value="false" <%=configBO.getDailyTimingInNaturalMonth() ? "" : "checked"%> />否
								</td>

								<td>
									<input type="hidden" name="isFirstGo" value="false" />
									<input type="submit" name="ctl00$ContentPlaceHolder1$Button11"
										value="更 新" id="ctl00_ContentPlaceHolder1_Button11"
										style="height: 22px;" />
								</td>
								<td>
									&nbsp;
								</td>
							</tr>
						</form>
						<form action="<%=request.getContextPath() %>/admin/systemSet.do" method="post">	
							<tr>
								<td>
									公司的每月考勤起始日期是
									<input name="dailyTimingStartDatePerMonth" type="text"
										value="<%=configBO.getDailyTimingStartDatePerMonth()%>" id="ctl00_ContentPlaceHolder1_TextBox9"
										style="height: 16px; width: 30px; font-size: small" />

									日。
								</td>
								<td>
									<input type="hidden" name="isFirstGo" value="false" />
									<input type="submit" name="ctl00$ContentPlaceHolder1$Button12"
										value="更 新" id="ctl00_ContentPlaceHolder1_Button12"
										style="height: 22px;" />
								</td>
								<td>
									提示：若考勤周期不是自然月，请输入1～28间的自然数。
								</td>
							</tr>
						</form>	
						<form action="<%=request.getContextPath() %>/admin/systemSet.do" method="post">
							<tr>

								<td>
									每月的考勤统计表将发送到下面的电子邮件地址：
								</td>
								<td rowspan="2">
									<input type="hidden" name="isFirstGo" value="false" />
									<input type="submit" name="ctl00$ContentPlaceHolder1$Button13"
										value="更 新" id="ctl00_ContentPlaceHolder1_Button13"
										style="height: 22px;" />
								</td>
								<td rowspan="2">
									提示：多个电子邮箱地址，请用半角逗号&quot;,&quot;隔开。
								</td>

							</tr>
							
							<tr>
								<td>
									<input name="dailyTimingStatisticsEmailAddrs" type="text"
										id="ctl00_ContentPlaceHolder1_TextBox10"
										style="height: 16px; width: 95%; font-size: small"
										value="<%=configBO.getDailyTimingStatisticsEmailAddrs()%>" />
								</td>
							</tr>
						</form>
						<form action="<%=request.getContextPath() %>/admin/systemSet.do" method="post">
							<tr>
								<td>
									每月的消费记录对账单将发送到下面的电子邮件地址：
								</td>

								<td rowspan="2">
									<input type="hidden" name="isFirstGo" value="false" />
									<input type="submit" name="ctl00$ContentPlaceHolder1$Button14"
										value="更 新" id="ctl00_ContentPlaceHolder1_Button14"
										style="height: 22px;" />
								</td>
								<td rowspan="2">
									提示：多个电子邮箱地址，请用半角逗号&quot;,&quot;隔开。
								</td>
							</tr>
							<tr>

								<td>
									<input name="consumeStatisticsEmailAddrs" type="text"
										id="ctl00_ContentPlaceHolder1_TextBox11"
										style="height: 16px; width: 95%; font-size: small"
										value="<%=configBO.getConsumeStatisticsEmailAddrs()%>"
										 />
								</td>
							</tr>
						</form>
							<tr>
								<td>
									&nbsp;
								</td>
								<td>
									&nbsp;
								</td>

								<td>
									&nbsp;
								</td>
							</tr>
							<tr>
								<td bgcolor="#FFFBD6" colspan="3">
									<span id="ctl00_ContentPlaceHolder1_Label7"
										style="color: #990000; background-color: #FFCC66; font-size: small">数据保存</span>
								</td>
							</tr>
					<form action="<%=request.getContextPath() %>/admin/systemSet.do" method="post">
							<tr>
								<td>
									考勤记录需保存
									<input name="dailyTimingSavedMonth" type="text"
										value="<%=configBO.getDailyTimingSavedMonth()%>" id="ctl00_ContentPlaceHolder1_TextBox12"
										style="height: 16px; width: 30px; font-size: small" />
									个月。
								</td>
								<td>
									<input type="hidden" name="isFirstGo" value="false" />
									<input type="submit" name="ctl00$ContentPlaceHolder1$Button15"
										value="更 新" id="ctl00_ContentPlaceHolder1_Button15"
										style="height: 22px;" />
								</td>
								<td>

									提示：请输入12～36间的自然数。
								</td>
							</tr>
					</form>
					<form action="<%=request.getContextPath() %>/admin/systemSet.do" method="post">
							<tr>
								<td>
									申请记录需保存
									<input name="applicationSavedMonth" type="text"
										value="<%=configBO.getApplicationSavedMonth()%>" id="ctl00_ContentPlaceHolder1_TextBox13"
										style="height: 16px; width: 30px; font-size: small" />
									个月。
								</td>
								<td>
									<input type="hidden" name="isFirstGo" value="false" />
									<input type="submit" name="ctl00$ContentPlaceHolder1$Button16"
										value="更 新" id="ctl00_ContentPlaceHolder1_Button16"
										style="height: 22px;" />
								</td>
								<td>
									提示：请输入12～36间的自然数。
								</td>
							</tr>
					</form>
					<form action="<%=request.getContextPath() %>/admin/systemSet.do" method="post">		
							<tr>
								<td>
									考勤统计需保存
									<input name="dailyTimingStatisticsSavedMonth" type="text"
										value="<%=configBO.getDailyTimingStatisticsSavedMonth()%>" id="ctl00_ContentPlaceHolder1_TextBox14"
										style="height: 16px; width: 30px; font-size: small" />

									个月。
								</td>
								<td>
									<input type="hidden" name="isFirstGo" value="false" />
									<input type="submit" name="ctl00$ContentPlaceHolder1$Button17"
										value="更 新" id="ctl00_ContentPlaceHolder1_Button17"
										style="height: 22px;" />
								</td>
								<td>
									提示：请输入12～36间的自然数。
								</td>
							</tr>
					</form>
					<form action="<%=request.getContextPath() %>/admin/systemSet.do" method="post">		
							<tr>

								<td>
									消费记录需保存
									<input name="consumeStatisticsSavedMonth" type="text"
										value="<%=configBO.getConsumeStatisticsSavedMonth()%>" id="ctl00_ContentPlaceHolder1_TextBox15"
										style="height: 16px; width: 30px; font-size: small" />
									个月。
								</td>
								<td>
									<input type="hidden" name="isFirstGo" value="false" />
									<input type="submit" name="ctl00$ContentPlaceHolder1$Button18"
										value="更 新" id="ctl00_ContentPlaceHolder1_Button18"
										style="height: 22px;" />
								</td>
								<td>
									提示：请输入12～36间的自然数。
								</td>

							</tr>
					</form>		
							<tr>
								<td>
									&nbsp;
								</td>
								<td>
									&nbsp;
								</td>
								<td>
									&nbsp;
								</td>
							</tr>

						</table>

					</td>
				</tr>

			</table>
		<jsp:include page="../footer.jsp"></jsp:include>
	</body>
</html>
